package com.quectel.emp.vo.devicepatrol;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 设备巡检事件上报
 *
 * @author: zhangheng
 * @email: nolan.zhang@quectel.com
 * @date: 2022-05-17 11:10:00
 */
@Data
@Schema
public class DevicePatrolEventReportVo {

    /**
     * 巡更任务id
     */
    @Schema(description = "巡更任务id")
    @NotNull(message = "巡更任务id不能为空")
    private Long taskId;

    /**
     * 设备
     */
    @Schema(description = "设备")
    @NotNull(message = "设备不能为空")
    private Long deviceId;

    /**
     * 抓拍图片
     */
    @Schema(description = "抓拍图片Json")
    private String snapshotImg;

    /**
     * 事件描述
     */
    @Schema(description = "事件描述")
    private String detail;

    /**
     * 事件描述
     */
    @Schema(description = "经度")
    private Double lng;

    /**
     * 事件描述
     */
    @Schema(description = "纬度")
    private Double lat;

    /**
     * 事件描述
     */
    @Schema(description = "上报地址")
    private String address;

    /**
     * 跳检原因字典值
     */
    @Schema(description = "跳检原因字典值")
    private Byte skipCheckReasonType;

    /**
     * 状态0异常1正常2跳检
     */
    @Schema(description = "状态0异常1正常2跳检3漏检")
    @NotNull(message = "状态不能为空")
    private Byte status;

    /**
     * 是否分配工单0否1是
     */
    @Schema(description = "是否分配工单0否1是")
    private Byte assignWorkOrder;

    /**
     * 工单处理人id
     */
    @Schema(description = "工单处理人id")
    private Long assignUserId;


}
